package com.kk.admin.controller;

import com.kk.admin.service.OrderService;
import com.kk.param.PageParam;
import com.kk.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: b2c-store
 *
 * @author: kjy
 * time: 2023/5/21 17:58
 * description: 订单的控制controller
 */
@RestController
@RequestMapping("order")
public class OrderController {
    @Autowired
    private OrderService orderService;

    @GetMapping("/list")
    public R list(PageParam pageParam){
        return orderService.list(pageParam);
    }
}
